﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NRadioTray.App
{
    /// <summary>
    /// Class <see cref="WaitCursor"/>.
    /// </summary>
    public class WaitCursor : IDisposable
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WaitCursor"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        public WaitCursor()
        {
            Cursor.Current = Cursors.WaitCursor;
        }

        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            Cursor.Current = Cursors.Arrow;
        }
    }
}
